package com.qww.exec06;


import java.util.zip.DeflaterOutputStream;

class Game {
    Game(int i) {
        System.out.println("Game constructor");
    }
}

class BoardGame extends Game {
    /*
    // There is no default constructor available in 'com.qww.exec06.Game'
    BoardGame(int i) {
        System.out.println("BoardGame constructor");
    }
    */
    BoardGame(int i) {
        super(i);
        System.out.println("BoardGame constructor");
    }
}

public class Chess extends BoardGame{

    Chess() {
        super(200);
        System.out.println("Chess constructor");
    }
    public static void main(String[] args) {
        new Chess();
    }
}
/* 运行结果
Game constructor
BoardGame constructor
Chess constructor
 */
